How to Get the Layout Column Name using Dxl Scripting

Hi,
I am very much New to Doors Dxl Scriping.
My requirement is to create the traceability matrix for doors modules.
I am planing to write a script which will creates the layout columns, Each Layout column will containg the same code, But the behavioure of the Layout column will change based on the name of the Column. Here I have a Problem.

here I am unable to get the Name of the Layout column. I am using DOORS version 8.1.

If any one having the solution for this proble Please help me.

Thanks in advance

Regards
Azmath
azmath_india - Wed May 26 03:34:03 EDT 2010

Re: How to Get the Layout Column Name using Dxl Scripting
Mathias Mamsch - Wed May 26 05:59:00 EDT 2010

Look at this post: https://www.ibm.com/developerworks/forums/click.jspa?searchID=-1&messageID=14455379

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: How to Get the Layout Column Name using Dxl Scripting
llandale - Wed May 26 15:42:11 EDT 2010

This traceability work is best done with Attr-DXL, rather than Layouts. Layouts recalculate every time the module is displayed, which certainly means scollng the mdoule, but also apparantly about 10 times per second when you move some other window over that module window. Attr-DXL is also queryable from other modules, and the code itself has no problem getting the attribute name (attrDXLName).

  • Louie

Re: How to Get the Layout Column Name using Dxl Scripting
azmath_india - Thu May 27 00:22:50 EDT 2010

Mathias Mamsch - Wed May 26 05:59:00 EDT 2010
Look at this post: https://www.ibm.com/developerworks/forums/click.jspa?searchID=-1&messageID=14455379


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Hello Mathias,
Thanks for your help. From the below link which you have mentioned I got some Idea using that I solved the Issue. Actually what I have done is instead of reading the title of the layout column I passed the title name to the layout column, Now based on the passed name the script is changing it behavior.
Thank you once again for the help.

Regards
Azmath

Re: How to Get the Layout Column Name using Dxl Scripting
azmath_india - Thu May 27 00:29:38 EDT 2010

llandale - Wed May 26 15:42:11 EDT 2010
This traceability work is best done with Attr-DXL, rather than Layouts. Layouts recalculate every time the module is displayed, which certainly means scollng the mdoule, but also apparantly about 10 times per second when you move some other window over that module window. Attr-DXL is also queryable from other modules, and the code itself has no problem getting the attribute name (attrDXLName).

  • Louie

Hi Louie,
Thank you for your suggestion, actually I have completed this traceability matrix script using attribute only. But my client is asking me to do in layout columns. Both Layout column and attributes having their own advantages and disadvantages.
Thanks for your suggestions.

Re: How to Get the Layout Column Name using Dxl Scripting
azmath_india - Thu May 27 00:32:56 EDT 2010

Hey Guys,
Now I have one more question.
Is that possible to search the traceability data in the perticular baseline version?

Re: How to Get the Layout Column Name using Dxl Scripting
Mathias Mamsch - Thu May 27 05:17:58 EDT 2010

azmath_india - Thu May 27 00:32:56 EDT 2010
Hey Guys,
Now I have one more question.
Is that possible to search the traceability data in the perticular baseline version?

Those "is it possible" question most of the time yield the same answer: YES. But it is not clear what you mean exactly.

I would take a guess:

You baselined your modules, you did not use a baseline set and now you want to do traceability.
Answer: The bad news is that probably the information which baseline belongs to which is not available in DOORS anymore. Even more complicating the issue is, that you did not baseline them at the same time, so you cannot be sure that the link target still exists in the baseline.

So you will need to tell your traceability script exactly, in what baseline to look, and you need to manually locate the target object. You need to handle special cases like "The link is there, it is supposed to go to object XYZ, but object XYZ does not exist in the target module". Use the Module load(...) perm to open the baseline.

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS